import request from '@/utils/request'

// 查询基地列表
export function listWfzbase(query) {
  return request({
    url: '/bomcostestimation/basedocument/wfzbase/list',
    method: 'get',
    params: query
  })
}

// 查询基地详细
export function getWfzbase(fid) {
  return request({
    url: '/bomcostestimation/basedocument/wfzbase/' + fid,
    method: 'get'
  })
}

// 新增基地
export function addWfzbase(data) {
  return request({
    url: '/bomcostestimation/basedocument/wfzbase',
    method: 'post',
    data: data
  })
}

// 修改基地
export function updateWfzbase(data) {
  return request({
    url: '/bomcostestimation/basedocument/wfzbase',
    method: 'put',
    data: data
  })
}

// 删除基地
export function delWfzbase(fid) {
  return request({
    url: '/bomcostestimation/basedocument/wfzbase/' + fid,
    method: 'delete'
  })
}
